home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 126-150 / disk_136 / bison / makefile.unix < prev    next >
Makefile  |  1992-05-06  |  1KB  |  55 lines

  1. # Makefile for bison
  2.  
  3. # where the installed binary goes
  4. BINDIR = /usr/local
  5.  
  6. # where the parsers go
  7. PARSERDIR = /usr/local/lib
  8.  
  9. # names of parser files
  10. PFILE = bison.simple
  11. PFILE1 = bison.hairy
  12.  
  13. # It is unwise ever to compile a program without symbols.
  14. CFLAGS = -g
  15.  
  16. PFILES = -DXPFILE=\"$(PARSERDIR)/$(PFILE)\" \
  17.      -DXPFILE1=\"$(PARSERDIR)/$(PFILE1)\"
  18.  
  19. OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o    \
  20.       getargs.o gram.o lalr.o                    \
  21.       lex.o main.o nullable.o output.o print.o reader.o symtab.o    \
  22.       warshall.o
  23.  
  24. start: bison
  25.  
  26. clean:
  27.     rm -f *.o core
  28.  
  29. install: bison
  30.     install bison $(BINDIR)
  31.     install -c $(PFILE) $(PFILE1) $(PARSERDIR)
  32.  
  33. bison: $(OBJECTS)
  34.     $(CC) $(CFLAGS) -o bison $(OBJECTS)
  35.  
  36. # This file is different to pass the parser file names
  37. # to the compiler.
  38. files.o: files.c files.h new.h gram.h
  39.     $(CC) -c $(CFLAGS) $(PFILES) files.c
  40.  
  41. LR0.o: machine.h new.h gram.h state.h
  42. closure.o: machine.h new.h gram.h
  43. conflicts.o: machine.h new.h files.h gram.h state.h
  44. derives.o: new.h types.h gram.h
  45. getargs.o: files.h
  46. lalr.o: machine.h types.h state.h new.h gram.h
  47. lex.o: files.h symtab.h lex.h
  48. main.o: machine.h
  49. nullable.o: types.h gram.h new.h
  50. output.o: machine.h new.h files.h gram.h state.h
  51. print.o: machine.h new.h files.h gram.h state.h
  52. reader.o: files.h new.h symtab.h lex.h gram.h
  53. symtab.o: new.h symtab.h gram.h
  54. warshall.o: machine.h
  55.